package com.xja.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.entity.ArticleDistribute;
import com.xja.mapper.ArticleDistributeMapper;
import com.xja.service.ArticleDistributeService;
@Service
public class ArticleDistributeServiceImpl implements ArticleDistributeService{

    @Resource
    private ArticleDistributeMapper articleDistributeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return articleDistributeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ArticleDistribute record) {
        return articleDistributeMapper.insert(record);
    }

    @Override
    public int insertSelective(ArticleDistribute record) {
        return articleDistributeMapper.insertSelective(record);
    }

    @Override
    public ArticleDistribute selectByPrimaryKey(Integer id) {
        return articleDistributeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ArticleDistribute record) {
        return articleDistributeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ArticleDistribute record) {
        return articleDistributeMapper.updateByPrimaryKey(record);
    }

}
